package jwei.apps.objects;

import java.util.ArrayList;
import java.util.List;

public class Product {

    private int brandId;

    private String brandName;

    private long productId;

    private String productName;

    private String productUrl;

    private String imageUrl;

    private String gender;
    
    // only used for APIConstants.SIMILIARTY
    private String price;

    private List<Style> styles;

    /**
     * Constructor for Product() object requires id, name, product url, and
     * image url at the minimum.
     * 
     * @param id
     * @param name
     * @param url
     * @param imageUrl
     */
    public Product(long id, String name, String url, String imageUrl) {
        this.productId = id;
        this.productName = name;
        this.productUrl = url;
        this.imageUrl = imageUrl;

        // init
        this.styles = new ArrayList<Style>();
    }

    public int getBrandId() {
        return brandId;
    }

    public void setBrandId(int brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductUrl() {
        return productUrl;
    }

    public void setProductUrl(String productUrl) {
        this.productUrl = productUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public List<Style> getStyles() {
        return styles;
    }

    public void addStyle(Style s) {
        styles.add(s);
    }
    
    public String getPrice() {
        return price;
    }
    
    public void setPrice(String price) {
        this.price = price;
    }

}
